package org.smr.ministore.service;

import org.smr.ministore.entities.Brand;
import org.blade.service.base.BaseService;
import org.blade.service.base.BaseBatchService;
import org.blade.service.base.PaginationQueryService;
import org.smr.ministore.entities.vo.Assign2OrganVO;
import org.smr.ministore.entities.vo.Assign2OrgansVO;

/**
 * @author blade
 *
 */
public interface BrandService extends BaseService<Long, Brand>,
                                        BaseBatchService<Long, Brand>,
                                        PaginationQueryService<Long, Brand> {
    /**
     * 逻辑删除
     *
     * @param id
     * @return
     */
    public int deleteByIdLogical(Long id);

    /**
     * 指派给组织
     *
     * @param assignee 受派人
     * @return 影响的行数
     */
    int assignToOrgans(Assign2OrgansVO assignee);

    /**
     * 多个商品指派给组织
     *
     * @param goodsAssign2Organ 商品集合指派给组织
     * @return
     */
    int assign(Assign2OrganVO goodsAssign2Organ);

}
